package cn.com.db.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.com.db.model.WxPayResult;

@Service
@Transactional
public class WxPayResultService extends BaseService {

	public void createWxPayResult(WxPayResult wxPayResult) {
		wxPayResultDao.createWxPayResult(wxPayResult);
	}

	public void updateWxPayResult(WxPayResult wxPayResult) {
		wxPayResultDao.updateWxPayResult(wxPayResult);
	}

	public String getOrdersById(String wx_order_id) {
		return wxPayResultDao.getOrdersById(wx_order_id);
	}

	public String getPrepayId(String wx_order_id) {
		return wxPayResultDao.getPrepayIdById(wx_order_id);
	}

	public WxPayResult getPayResultByOrderId(String orderId) {
		return wxPayResultDao.getPayResultByOrderId(orderId);
	}

	public String getPrepayIdByOrderId(String orderId){
		return wxPayResultDao.getPrepayIdByOrderId(orderId);
	}
}
